package com.example.cxx.myapplication;

import android.animation.Animator;
import android.animation.ObjectAnimator;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ExpandableListView;
import android.widget.TextView;

import java.util.ArrayList;
import java.util.List;


public class NextActivity extends Activity  {

    private RectProgressBar backRectProgressBar;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_next);
        backRectProgressBar = (RectProgressBar) findViewById(
                R.id.consume_number_progressBar11_home_page);
        backRectProgressBar.setHorizontal(false);
        ObjectAnimator mProgressBarAnimator = ObjectAnimator.ofFloat(
                backRectProgressBar, "progress", 0f, 0f);
        mProgressBarAnimator.addListener(new Animator.AnimatorListener() {
            @Override
            public void onAnimationCancel(Animator arg0) {
            }

            @Override
            public void onAnimationEnd(Animator arg0) {
                backRectProgressBar.animate(backRectProgressBar, null,
                        null, 1.0f, 500);

            }

            @Override
            public void onAnimationRepeat(Animator arg0) {
            }

            @Override
            public void onAnimationStart(Animator arg0) {
            }
        });
        mProgressBarAnimator.start();

    }

}

